import cn.thinkluck.Main;
import cn.thinkluck.pattern.proxy.dynamic.aop.DataQuery;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Author liutao
 * @DateTime 2024/7/20 下午5:26
 */
@SpringBootTest(classes = Main.class)
@Slf4j
public class AOPTst {
    @Autowired
    private DataQuery dataQuery;
    @Test
    public void test()
    {
        String value1 = dataQuery.query("key1");
        log.info(value1);
        String value2 = dataQuery.query("key1");
        log.info(value2);
    }
}
